package day1109;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        boolean flag=false;
        System.out.println("提交作业：");
        String a=input.next();
        if(a.length()>4){
            if (a.endsWith(".zip")||a.endsWith(".rar")){
                int i=a.indexOf(".");
                String b=a.substring(0,i);
                char[] chars=b.toCharArray();
                for(int j=0;j<chars.length;j++){
                    if((int)chars[j]>255){
                        if(j==chars.length-1){
                            System.out.println("提交成功！");
                        }
                    }else {
                        flag=true;
                        break;
                    }
                }
                if(flag){
                    System.out.println("提交失败！");
                }
            }else {
                System.out.println("输入失败");
            }

        }
    }
}
